const publishStatusObj = {
    'NOT_YET': '未上架',
    'STARTING': '已上架',
    'END': '已下架',
}
const publishStatusArr = [{
    name: '未上架',
    status: 'NOT_YET'
}, {
    name: '已上架',
    status: 'STARTING'
}, {
    name: '已下架',
    status: 'END'
}]

const inputRule = {
    productNo: [
        { required: true, message: '请输入产品编码', trigger: 'blur' },
        { max: 30, message: '不能超过30个字符', trigger: 'blur' }
    ],
    productName: [
        { required: true, message: '请输入产品名称', trigger: 'blur' },
    ],
    maxRate: [
        { required: true, message: '请输入收益率', trigger: 'blur' },
    ],
    minRate: [
        { required: true, message: '请输入收益率', trigger: 'blur' },
    ],
    raiseLimit: [
        { type: 'number', message: '只能填写数字', trigger: 'blur' },
        { required: true, type: 'number', message: '请输入总募集额度', trigger: 'blur' },
        { max: 9999999999, type: 'number', message: '不能超过10位数', trigger: 'blur' },
    ],
    minPurchaseAmount: [
        { type: 'number', message: '只能填写数字', trigger: 'blur' },
        { required: true, type: 'number', message: '请输入起购金额', trigger: 'blur' },
        { max: 9999999999, type: 'number', message: '不能超过10位数', trigger: 'blur' },
    ],
    issuerId: [
        { required: true, message: '请选择', trigger: 'blur' },
    ],
    productTermStr: [
        { required: true, message: '请填写产品期限', trigger: 'blur' },
        { max: 30, message: '不能超过30个字符', trigger: 'blur' },
    ],
    riskLevel: [
        { required: true, message: '请选择', trigger: 'blur' },
    ],
    labelColor: [
        { required: true, message: '请选择', trigger: 'blur' },
        { regexp: '/^(#[0-9a-fA-F]{6}){1}$/g', message: '1111', trigger: 'blur' }
    ]
}


export {
    publishStatusObj,
    publishStatusArr,
    inputRule,

}